package com.mikiya.plugin.dto;

import com.mikiya.plugin.constant.ClassTypeEnum;

import java.util.List;

public class ClassInfoDTO {
    private ClassTypeEnum classType;
    private String className;

    private int usedCount = 0;
    private int cyclomaticComplexity = 0;

    private List<ClassMethodDTO> methodList;

    public ClassInfoDTO(String className) {
        this.className = className;
        this.classType = ClassTypeEnum.CLASS;
    }

    public void setClassType(ClassTypeEnum classType) {
        this.classType = classType;
    }

    public ClassTypeEnum getClassType() {
        return classType;
    }

    public String getClassName() {
        return className;
    }

    public List<ClassMethodDTO> getMethodList() {
        return methodList;
    }

    public void setMethodList(List<ClassMethodDTO> methodList) {
        this.methodList = methodList;
    }

    public int getUsedCount() {
        return usedCount;
    }

    public void setUsedCount(int usedCount) {
        this.usedCount = usedCount;
    }

    public int getCyclomaticComplexity() {
        return cyclomaticComplexity;
    }

    public void setCyclomaticComplexity(int cyclomaticComplexity) {
        this.cyclomaticComplexity = cyclomaticComplexity;
    }

    @Override
    public String toString() {
        return className;
    }
}
